<template>
	<view class="content">
		<view class="header">
			<image src="/static/shilu-login/logo.png"></image>
		</view>
		<button class="dlbutton" hover-class="dlbutton-hover" open-type="getUserInfo" @getuserinfo="bindLogin">
			<text>请授权您的头像信息</text>
		</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				articleurl: '',
				webviewStyles: {
					progress: {
						color: '#FF7200'
					}
				}
			};
		},
		onLoad(options) {

		},
		methods: {
			bindLogin(e) {
				console.log(e)
				if (e.detail.errMsg == "getUserInfo:ok"){
					uni.switchTab({
						url: "/pages/tabbar/tabbar-1/tabbar-1"
					})
				}
			}

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.header {
		width: 161upx;
		height: 161upx;
		background: rgba(63, 205, 235, 1);
		box-shadow: 0upx 12upx 13upx 0upx rgba(63, 205, 235, 0.47);
		border-radius: 50%;
		margin-top: 30upx;
		margin-left: auto;
		margin-right: auto;
	}

	.header image {
		width: 161upx;
		height: 161upx;
		border-radius: 50%;
	}
	.dlbutton {
		color: #FFFFFF;
		font-size: 34upx;
		width: 470upx;
		height: 100upx;
		background: linear-gradient(-90deg, rgba(63, 205, 235, 1), rgba(188, 226, 158, 1));
		box-shadow: 0upx 0upx 13upx 0upx rgba(164, 217, 228, 0.2);
		border-radius: 50upx;
		line-height: 100upx;
		text-align: center;
		margin-left: auto;
		margin-right: auto;
		margin-top: 100upx;
	}
</style>
